﻿<%@ Page Title="按地区查看配送关系" Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master"
    AutoEventWireup="true" CodeBehind="ProductCompanySubArea1.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.RelationQuery.ProductCompanySubArea1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript" language="javascript">
        function insertGoodsInfo(goodsInfo) {
            var varGoodsInfo = goodsInfo.split('|');
            document.all.ctl00_ContentPlaceHolder1_companyId.value = varGoodsInfo[0];
            document.all.ctl00_ContentPlaceHolder1_txtCompany.value = varGoodsInfo[1];
        }    
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div class="maincon">
        <div id="note">
            按地区维护分配送关系</div>
        <div id="note2">
        </div>
        <table>
            <tr>
                <th align="right" width="20%">
                    <asp:Label ID="lblGoodsNameTag" runat="server" Text="产品名称："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblGoodsName" runat="server"></asp:Label>
                </td>
                <th align="right">
                    <asp:Label ID="lblOutlookcTag" runat="server" Text="规格型号："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblOutlookc" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th align="right">
                    <asp:Label ID="lblMaterial1" runat="server" Text="材质："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblMaterial" runat="server"></asp:Label>
                </td>
                <th align="right">
                    <asp:Label ID="lblUnit1" runat="server" Text="单位："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblUnit" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th align="right">
                    <asp:Label ID="lblCompany_SCTag" runat="server" Text="生产企业："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblCompany_SC" runat="server"></asp:Label>
                </td>
                <th align="right">
                    <asp:Label ID="lblCompany_ZBTag" runat="server" Text="投标企业："></asp:Label>
                </th>
                <td align="left">
                    <asp:Label ID="lblCompany_ZB" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <br />
    <div id="tabcontent2">
        <table class="querylist">
            <tr>
                <th>
                    地区：
                </th>
                <td align="left">
                    <asp:DropDownList ID="ddlProvice" runat="server" Enabled="false">
                        <asp:ListItem Value="">所在省</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;<asp:DropDownList ID="ddlCity" runat="server" Style="display: <%=Ishow%>">
                        <asp:ListItem Value="">所在城市</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <input id="hfdCompanyName" type="hidden" name="hfdCompanyName" runat="server" />&nbsp;
                </td>
                <th align="right">
                    <asp:Label ID="lblCompany_PS" runat="server" Text="配送企业："></asp:Label>
                </th>
                <td>
                    <asp:TextBox ID="txtCompany" runat="server"></asp:TextBox><input id="companyId" type="hidden"
                        name="companyId" runat="server" />
                    <input id="btnSelectCompany" type="button" style="width: 35px" value="选择" onclick="window.open('CompanySelect.aspx','SelectCompany','width=600,height=450,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0')"
                        class="btn" />&nbsp;&nbsp;&nbsp;
                </td>
                <td align="right">
                    <hz:HzButton ID="HzButton1" runat="server" CssClass="btn" Text="添加配送关系" OnClick="HzButton1_Click"  OperateType="编辑" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwProduceCatalog" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        OnRowDataBound="gvwProduceCatalog_RowDataBound" EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="AreaName" HeaderText="地区" />
            <%--<asp:BoundField DataField="CompanyName_PS" HeaderText="配送企业" />--%>
                        <asp:TemplateField HeaderText="配送企业">
                <ItemTemplate>
                    <a href="javascript:void(0)" title="查看配送企业详细信息" onclick="window.open('../../CommonPage/CompanyInfo.aspx?companyid=<%# Eval("CompanyID_PS") %>','selectCompany','width=550,height=350,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0')">
                        <%# Eval("CompanyName_PS")%></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <hz:HzLinkButton ID="lbtnDel" runat="server" CommandName="Del" OnClientClick="if(!this.disabled){return  confirm('确认要删除此行信息吗？');}else{return false;}" 
                      Enabled='<%#Eval("CompanyID_PS").ToString()!=HZ.DrugTrade.Web.CurrentAccount.GetUser().Org.OrgID?true:false %>'   OnClick="btn_Del" >删除</hz:HzLinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>提示:<span> </span></li>
        </ul>
    </div>

    <script type="text/javascript" language="javascript">
       new PCAS("ctl00$ContentPlaceHolder1$ddlProvice", "ctl00$ContentPlaceHolder1$ddlCity" <%=GetDefaultAreaString() %> );
    </script>

</asp:Content>
